package com.bolt.core.view.templates;

import com.bolt.core.view.components.ComponentsBase;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.Writer;


public class TemplateRenderingContext {

	private HttpServletRequest request;
	private HttpServletResponse  response;
    private  Template template;
    private ComponentsBase tag;



    private Writer writer;

	public TemplateRenderingContext(HttpServletRequest request, HttpServletResponse  response,  Writer writer,ComponentsBase tag, Template template) {
		this.tag = tag;
		this.request =  request;
        this.response = response;
        this.template = template;
        this.writer = writer;

	}

    public HttpServletRequest getRequest() {
        return request;
    }

    public HttpServletResponse getResponse() {
        return response;
    }

    public Template getTemplate() {
        return template;
    }

    public ComponentsBase getTag() {
        return tag;
    }

    public Writer getWriter() {
        return writer;
    }





}
